<?php
class CatMangeAction extends Action {
	function index(){
	$cat=new Cat_tab();
	$cat_slid=$cat->cat_list();
	$this->assign('cat_slid',$cat_slid);
	$this->display();
	}
	function add(){
		$cat=new Cat_tab();

		if($cat->add_cat()){

			$cat_slid=$cat->cat_list();

			$this->assign('cat_slid',$cat_slid);


			$this->display('index');

		
		}
	}






}
